<%inherit file="framework.html"/>
    <div id="container-main">
        <h2>Profile of ${c.userUsername}</h2>
        <form action="${c.app_base}/users/${c.userUsername}" method="post">
            <input type="hidden" name="_method" value="put" />
            % if len(c.feedback) > 0:
            <div class="error-message">
                <p>${c.feedback}</p>
            </div>
            % endif
            <table cellpadding="0" cellspacing="0" id="user-overview">
                <tr>
                    <th><label>Name</label></th>
                </tr>
                <tr>
                    <td><input type="text" name="realname" value="${c.userRealname}" /></td>
                </tr>
                <tr>
                    <th><label>New Password</label></th>
                </tr>
                <tr>
                    <td><input type="password" name="password_new" value="" /></td>
                </tr>
                <tr>
                    <th><label>Confirm New Password</label></th>
                </tr>
                <tr>
                    <td><input type="password" name="password_ver" value="" /></td>
                </tr>
                <tr>
                    <td>
                        <button type="submit">Submit the updated data</button>
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <div id="container-supplymentary">
        <h3>Options</h3>
        <ul>
            % if c.isEditable:
            <li><a href="${c.app_base}/users/${c.userUsername}">Cancel</a></li>
            % endif
            % if c.isAdminAccess:
            <li><a href="${c.app_base}/users${c.q}">Go back to the list</a></li>
            % else:
            <li><a href="${c.app_base}">Go back to the application</a></li>
            % endif
        </ul>
    </div>